'use strict';
const db = uniCloud.database()
// 获取users的表数据

exports.main = async (event, context) => {
	// const collection = await db.collection("users").get()
	// const collection = await db.collection("users").count() //求得total值
	// let collection = await db.collection("users").add({
	// 	name: '孙悟空',
	// 	gender: "男",
	// 	address: "山东济南"
	// })
	let collection = await db.collection("users").add([{
			name: "猪八戒"
		},
		{
			name: "沙悟净"
		},
		{
			name: "唐僧"
		},
	])
	return collection
};